package com.synnex.wms.service;
/**
 * 家属接口实现类，service
 * */

import com.synnex.wms.mapper.JiashuMapper;
import com.synnex.wms.pojo.Jiashu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class JiashuService {

	@Autowired
	private JiashuMapper JiashuMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return JiashuMapper.deleteByPrimaryKey(id);
	}

    public int insert(Jiashu record){
    	return JiashuMapper.insert(record);
    }

    public int insertSelective(Jiashu record){
    	return JiashuMapper.insertSelective(record);
    }

    public Jiashu selectByPrimaryKey(Integer id){
    	return JiashuMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Jiashu record){
    	return JiashuMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Jiashu record){
    	return JiashuMapper.updateByPrimaryKey(record);
    }
    
    public Jiashu selectByNameAndPword(String Jiashuname){
    	return JiashuMapper.selectByNameAndPword(Jiashuname);
    }
  
    public List<Jiashu> selectBy(){
    	return JiashuMapper.selectBy();
    }
    
    public List<Jiashu> showlist(Jiashu Jiashu){
    	return JiashuMapper.showlist(Jiashu);
    }
    public int pagecount(Jiashu Jiashu){
    	return JiashuMapper.pagecount(Jiashu);
    }
    
    
}
